<?php

/**
 * Perfiles form base class.
 *
 * @package    tercermilenio
 * @subpackage form
 * @author     Your name here
 */
class BasePerfilesForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'prf_grupo'      => new sfWidgetFormInputHidden(),
      'prf_permiso'    => new sfWidgetFormInputHidden(),
      'prf_formulario' => new sfWidgetFormInputHidden(),
    ));

    $this->setValidators(array(
      'prf_grupo'      => new sfValidatorPropelChoice(array('model' => 'Grupos', 'column' => 'gru_id', 'required' => false)),
      'prf_permiso'    => new sfValidatorPropelChoice(array('model' => 'Permisos', 'column' => 'prm_id', 'required' => false)),
      'prf_formulario' => new sfValidatorPropelChoice(array('model' => 'Formularios', 'column' => 'frm_id', 'required' => false)),
    ));

    $this->widgetSchema->setNameFormat('perfiles[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'Perfiles';
  }


}
